package ch8;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {

       int[] num={11,222,341,45,502};
       int sum=0;
       int avg=0;
       for(int i=0;i<num.length;i++){
           sum+=num[i];

       }
        avg=sum/num.length;
        System.out.println(avg);
        for(int i=0;i<num.length;i++){
           if(num[i]>avg){
               System.out.println(num[i]);
           }
        }

    }
}
